package com.jsejtman.gastos.ui.action;


/**
 * 
 * @author eswar@vaannila.com
 */
public class LoginAction {
//extends org.apache.struts.action.Action {
//
//	/* forward name="success" path="" */
//	/**
//	 * SUCCESS.
//	 */
//	private static final String SUCCESS = "success";
//	/**
//	 * SUCCESS.
//	 */
//	private static final String FAILURE = "failure";
//
//	/**
//	 * This is the action called from the Struts framework.
//	 * 
//	 * @param mapping The ActionMapping used to select this instance.
//	 * @param form The optional ActionForm bean for this request.
//	 * @param request The HTTP Request we are processing.
//	 * @param response The HTTP Response we are processing.
//	 * @throws java.lang.Exception si algo ocurre.
//	 * @return el actionForward.
//	 */
//	public final ActionForward execute(final ActionMapping mapping, final ActionForm form,
//	        final HttpServletRequest request, final HttpServletResponse response) throws Exception {
//
//		final LoginForm loginForm = (LoginForm) form;
//		if (loginForm.getUserName().equals(loginForm.getPassword())) {
//			return mapping.findForward(LoginAction.SUCCESS);
//		} else {
//			return mapping.findForward(LoginAction.FAILURE);
//		}
//	}
}
